<?php
/**
 * Created by PhpStorm.
 * User: jocky
 * Date: 2017/6/12
 * Time: 上午10:15
 */
?>
<div class="row">
    <div class="col-md-12 col-xs-12">
        <div class="x_panel">
            <div class="x_title">
                <h2>推广信息</h2>
                <ul class="nav navbar-right panel_toolbox">
                    <li>
                        <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                    </li>
                    <li onclick="accountObj.getAccountInfo(2)">
                        <a href="javascript:void(0)"><i class="fa fa-refresh"></i></a>
                    </li>
                </ul>
                <div class="clearfix"></div>
            </div>
            <div class="x_content hide-or-show">
                <br/>
                <form class="form-horizontal form-label-left" id="account_info_2">
                    <?= $this->render('info_2', [
                        'is_last' => $is_last,
                        'userInfo' => $userInfo,
                        'hierarchy' => $hierarchy,
                        'userbrokers_id'=>$userbrokers_id,
                    ]); ?>
                </form>
            </div>
        </div>
    </div>
</div>


<script>
    $().ready(function () {
        var clipboard = new Clipboard('.fa-copy');
        clipboard.on('success', function (e) {
            new PNotify({
                type: 'info',
                addclass: 'dark',
                title: '复制提醒',
                text: '复制成功',
                delay: 5000,
                styling: 'bootstrap3'
            });
        });

        clipboard.on('error', function (e) {
            new PNotify({
                title: '复制提醒',
                text: '复制失败',
                delay: 5000,
                styling: 'bootstrap3'
            });
        });
    })

</script>